package cn.lijiajia3515.cairo.security.authentication;

import cn.lijiajia3515.cairo.domain.CairoAccount;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.ToString;
import lombok.experimental.Accessors;
import lombok.experimental.SuperBuilder;
import org.springframework.security.core.GrantedAuthority;

import java.io.Serializable;
import java.util.Collection;

/**
 * cairo 凭证 对象 (dto)
 */
@ToString(callSuper = true)
@EqualsAndHashCode(callSuper = true)

@Data
@Accessors(chain = true)

@NoArgsConstructor
@AllArgsConstructor
@SuperBuilder(toBuilder = true)


public class CairoAuthentication extends CairoAccount implements Serializable {

	/**
	 * 权限
	 */
	private Collection<? extends GrantedAuthority> authorities;
}
